class Person {
    name: string
    constructor(name: string) {
        this.name = name
    }

    async sayName() {
        await this.setTimeOut1m()
        console.log(this.name)
    }

    setTimeOut1m() {
        return new Promise((resolve) => {
            setTimeout(() => {
                resolve()
            }, 1000)
        })
    }
}

export default Person